package com.cw.action;

import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.Icon;
import javax.swing.ImageIcon;

import com.cw.gui.MainPanel;

abstract public class LotteryAction extends AbstractAction {

	protected MainPanel mPanel;
	
	public LotteryAction(MainPanel mPanel, String name, String icon) {
		super(name);
		putValue(Action.SMALL_ICON,new ImageIcon(LotteryAction.class.getResource("/images/action/"+icon+".gif")));
		putValue(Action.SHORT_DESCRIPTION, name);
		this.mPanel = mPanel;
		// TODO Auto-generated constructor stub
	}

	
}
